import request from "@/utils/request"
// 所有学员模块的接口
// 添加学员接口
export const addStudentApi = (data) => {
  return request({
    url: "/VueHandler/AdminHandler?action=adduser",
    method: "post",
    data
  })
}
// 获取学员列表接口
export const getStudentListApi = (data) => {
  return request({
    url: "/VueHandler/AdminHandler?action=usershow",
    method: "post",
    data
  })
}
// 冻结解冻学员接口
export const freezeStudentApi = (tokenId) => {
  return request({
    url: "/VueHandler/AdminHandler?action=lockuser",
    method: "get",
    params: { tokenId }
  })
}